<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item prop="modelId">
        <el-input
          v-model="queryParams.modelId"
          placeholder="请输入模型ID"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item prop="columnName">
        <el-input
          v-model="queryParams.columnName"
          placeholder="请输入字段名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item prop="columnComment">
        <el-input
          v-model="queryParams.columnComment"
          placeholder="请输入字段描述"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item prop="propertyName">
        <el-input
          v-model="queryParams.propertyName"
          placeholder="请输入属性名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item prop="sortBy">
        <el-input
          v-model="queryParams.sortBy"
          placeholder="请输入显示顺序"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item prop="isPk">
        <el-input v-model="queryParams.isPk" placeholder="请输入是否主键" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item prop="isIncrement">
        <el-input
          v-model="queryParams.isIncrement"
          placeholder="请输入是否自增"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item prop="isRequired">
        <el-input
          v-model="queryParams.isRequired"
          placeholder="请输入是否必填"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item prop="readonlyMode">
        <el-input
          v-model="queryParams.readonlyMode"
          placeholder="请输入只读模式"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item prop="hiddenField">
        <el-input
          v-model="queryParams.hiddenField"
          placeholder="请输入隐藏域"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item prop="newline">
        <el-input
          v-model="queryParams.newline"
          placeholder="请输入是否换行"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item prop="insertable">
        <el-input
          v-model="queryParams.insertable"
          placeholder="请输入可插入"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item prop="editable">
        <el-input
          v-model="queryParams.editable"
          placeholder="请输入可编辑"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item prop="listable">
        <el-input
          v-model="queryParams.listable"
          placeholder="请输入可列表显示"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item prop="queryable">
        <el-input
          v-model="queryParams.queryable"
          placeholder="请输入可查询"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item prop="sortable">
        <el-input
          v-model="queryParams.sortable"
          placeholder="请输入可排序"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item prop="resizable">
        <el-input
          v-model="queryParams.resizable"
          placeholder="请输入可调宽"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item prop="exportable">
        <el-input
          v-model="queryParams.exportable"
          placeholder="请输入可导出"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item prop="defaultSort">
        <el-input
          v-model="queryParams.defaultSort"
          placeholder="请输入默认排序"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item prop="fixedMode">
        <el-input
          v-model="queryParams.fixedMode"
          placeholder="请输入固定列模式"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item prop="defaultValue">
        <el-input
          v-model="queryParams.defaultValue"
          placeholder="请输入默认值"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item prop="verifyRule">
        <el-input
          v-model="queryParams.verifyRule"
          placeholder="请输入验证规则"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item prop="width">
        <el-input
          v-model="queryParams.width"
          placeholder="请输入默认列宽"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item prop="example">
        <el-input
          v-model="queryParams.example"
          placeholder="请输入接口示例"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          v-hasPermi="['lcdp:modelColumn:add']"
          >新增
        </el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['lcdp:modelColumn:edit']"
          >修改
        </el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleAudit"
          v-hasPermi="['lcdp:modelColumn:audit']"
          >审核
        </el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleUnaudit"
          v-hasPermi="['lcdp:modelColumn:audit']"
          >反审核
        </el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleRemove"
          v-hasPermi="['lcdp:modelColumn:delete']"
          >回收站
        </el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleRecover"
          v-hasPermi="['lcdp:modelColumn:delete']"
          >还原
        </el-button>
        <el-col :span="1.5">
          <el-button
            type="danger"
            plain
            icon="el-icon-delete"
            size="mini"
            :disabled="multiple"
            @click="handleDelete"
            v-hasPermi="['lcdp:modelColumn:delete']"
            >删除
          </el-button>
        </el-col>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          @click="handleExport"
          v-hasPermi="['lcdp:modelColumn:export']"
          >导出
        </el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="list" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="50" align="center" />
      <el-table-column label="字段名称" align="center" prop="columnName" />
      <el-table-column label="字段类型" align="center" prop="columnType" />
      <el-table-column label="字段描述" align="center" prop="columnComment" />
      <el-table-column label="属性名称" align="center" prop="propertyName" />
      <el-table-column label="Java类型" align="center" prop="javaType" />
      <el-table-column label="显示顺序" align="center" prop="sortBy" />
      <el-table-column label="是否主键" align="center" prop="isPk" />
      <el-table-column label="是否自增" align="center" prop="isIncrement" />
      <el-table-column label="是否必填" align="center" prop="isRequired" />
      <el-table-column label="只读模式" align="center" prop="readonlyMode" />
      <el-table-column label="隐藏域" align="center" prop="hiddenField" />
      <el-table-column label="是否换行" align="center" prop="newline" />
      <el-table-column label="可插入" align="center" prop="insertable" />
      <el-table-column label="可编辑" align="center" prop="editable" />
      <el-table-column label="可列表显示" align="center" prop="listable" />
      <el-table-column label="可查询" align="center" prop="queryable" />
      <el-table-column label="可排序" align="center" prop="sortable" />
      <el-table-column label="可调宽" align="center" prop="resizable" />
      <el-table-column label="可导出" align="center" prop="exportable" />
      <el-table-column label="默认排序" align="center" prop="defaultSort" />
      <el-table-column label="固定列模式" align="center" prop="fixedMode" />
      <el-table-column label="查询方式" align="center" prop="queryType" />
      <el-table-column label="显示类型" align="center" prop="htmlType" />
      <el-table-column label="字典类型" align="center" prop="dictType" />
      <el-table-column label="默认值" align="center" prop="defaultValue" />
      <el-table-column label="验证规则" align="center" prop="verifyRule" />
      <el-table-column label="默认列宽" align="center" prop="width" />
      <el-table-column label="接口示例" align="center" prop="example" />
      <el-table-column label="响应布局" align="center" prop="layout" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            :disabled="!canEdit(scope.row)"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['lcdp:modelColumn:edit']"
            >修改
          </el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleAudit(scope.row)"
            v-hasPermi="['lcdp:modelColumn:audit']"
            >审核
          </el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUnaudit(scope.row)"
            v-hasPermi="['lcdp:modelColumn:audit']"
            >反审核
          </el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            :disabled="!canDelete(scope.row)"
            @click="handleDelete(scope.row)"
            v-hasPermi="['lcdp:modelColumn:delete']"
            >删除
          </el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleRemove(scope.row)"
            v-hasPermi="['lcdp:modelColumn:delete']"
            >回收站
          </el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleRecover(scope.row)"
            v-hasPermi="['lcdp:modelColumn:delete']"
            >还原
          </el-button>
        </template>
      </el-table-column>
    </el-table>

    <pagination
      v-show="total > 0"
      :total="total"
      :page.sync="queryParams.currentPage"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改模型字段对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
        <el-form-item label="模型ID" prop="modelId">
          <el-input v-model="form.modelId" placeholder="请输入模型ID" />
        </el-form-item>
        <el-form-item label="字段名称" prop="columnName">
          <el-input v-model="form.columnName" placeholder="请输入字段名称" />
        </el-form-item>
        <el-form-item label="字段描述" prop="columnComment">
          <el-input v-model="form.columnComment" placeholder="请输入字段描述" />
        </el-form-item>
        <el-form-item label="属性名称" prop="propertyName">
          <el-input v-model="form.propertyName" placeholder="请输入属性名称" />
        </el-form-item>
        <el-form-item label="Java类型" prop="sortBy">
          <el-input v-model="form.sortBy" placeholder="请输入Java类型" />
        </el-form-item>
        <el-form-item label="是否主键" prop="isPk">
          <el-input v-model="form.isPk" placeholder="请输入是否主键" />
        </el-form-item>
        <el-form-item label="是否自增" prop="isIncrement">
          <el-input v-model="form.isIncrement" placeholder="请输入是否自增" />
        </el-form-item>
        <el-form-item label="是否必填" prop="isRequired">
          <el-input v-model="form.isRequired" placeholder="请输入是否必填" />
        </el-form-item>
        <el-form-item label="只读模式" prop="readonlyMode">
          <el-input v-model="form.readonlyMode" placeholder="请输入只读模式" />
        </el-form-item>
        <el-form-item label="隐藏域" prop="hiddenField">
          <el-input v-model="form.hiddenField" placeholder="请输入隐藏域" />
        </el-form-item>
        <el-form-item label="是否换行" prop="newline">
          <el-input v-model="form.newline" placeholder="请输入是否换行" />
        </el-form-item>
        <el-form-item label="可插入" prop="insertable">
          <el-input v-model="form.insertable" placeholder="请输入可插入" />
        </el-form-item>
        <el-form-item label="可编辑" prop="editable">
          <el-input v-model="form.editable" placeholder="请输入可编辑" />
        </el-form-item>
        <el-form-item label="可列表显示" prop="listable">
          <el-input v-model="form.listable" placeholder="请输入可列表显示" />
        </el-form-item>
        <el-form-item label="可查询" prop="queryable">
          <el-input v-model="form.queryable" placeholder="请输入可查询" />
        </el-form-item>
        <el-form-item label="可排序" prop="sortable">
          <el-input v-model="form.sortable" placeholder="请输入可排序" />
        </el-form-item>
        <el-form-item label="可调宽" prop="resizable">
          <el-input v-model="form.resizable" placeholder="请输入可调宽" />
        </el-form-item>
        <el-form-item label="可导出" prop="exportable">
          <el-input v-model="form.exportable" placeholder="请输入可导出" />
        </el-form-item>
        <el-form-item label="默认排序" prop="defaultSort">
          <el-input v-model="form.defaultSort" placeholder="请输入默认排序" />
        </el-form-item>
        <el-form-item label="固定列模式" prop="fixedMode">
          <el-input v-model="form.fixedMode" placeholder="请输入固定列模式" />
        </el-form-item>
        <el-form-item label="默认值" prop="defaultValue">
          <el-input v-model="form.defaultValue" placeholder="请输入默认值" />
        </el-form-item>
        <el-form-item label="验证规则" prop="verifyRule">
          <el-input v-model="form.verifyRule" placeholder="请输入验证规则" />
        </el-form-item>
        <el-form-item label="默认列宽" prop="width">
          <el-input v-model="form.width" placeholder="请输入默认列宽" />
        </el-form-item>
        <el-form-item label="接口示例" prop="example">
          <el-input v-model="form.example" placeholder="请输入接口示例" />
        </el-form-item>
        <el-form-item label="响应布局" prop="layout">
          <el-input v-model="form.layout" type="textarea" placeholder="请输入内容" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { canDelete, canEdit } from '@/utils/permission';
import {
  pageList,
  queryById,
  deleteByIds,
  insert,
  updateById,
  pageRelease,
  pageRecycle,
  auditByIds,
  unauditByIds,
  recoverByIds,
  removeByIds,
} from '@/api/lcdp/modelColumn';

export default {
  name: 'ModelColumn',
  data() {
    return {
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 表格数据
      list: [],
      // 弹出层标题
      title: '',
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        currentPage: 1,
        pageSize: 10,
        columnName: null,
        columnType: null,
        columnComment: null,
        propertyName: null,
        javaType: null,
        sortBy: null,
        isPk: null,
        isIncrement: null,
        isRequired: null,
        readonlyMode: null,
        hiddenField: null,
        newline: null,
        insertable: null,
        editable: null,
        listable: null,
        queryable: null,
        sortable: null,
        resizable: null,
        exportable: null,
        defaultSort: null,
        fixedMode: null,
        queryType: null,
        htmlType: null,
        dictType: null,
        defaultValue: null,
        verifyRule: null,
        width: null,
        example: null,
        layout: null,
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {
        modelId: [{ required: true, message: '模型ID不能为空', trigger: 'blur' }],
        columnName: [{ required: true, message: '字段名称不能为空', trigger: 'blur' }],
        columnType: [{ required: true, message: '字段类型不能为空', trigger: 'change' }],
        columnComment: [{ required: true, message: '字段描述不能为空', trigger: 'blur' }],
        propertyName: [{ required: true, message: '属性名称不能为空', trigger: 'blur' }],
        javaType: [{ required: true, message: 'Java类型不能为空', trigger: 'change' }],
        sortBy: [{ required: true, message: '显示顺序不能为空', trigger: 'blur' }],
        isPk: [{ required: true, message: '是否主键不能为空', trigger: 'blur' }],
        isIncrement: [{ required: true, message: '是否自增不能为空', trigger: 'blur' }],
        isRequired: [{ required: true, message: '是否必填不能为空', trigger: 'blur' }],
        readonlyMode: [{ required: true, message: '只读模式不能为空', trigger: 'blur' }],
        hiddenField: [{ required: true, message: '隐藏域不能为空', trigger: 'blur' }],
        newline: [{ required: true, message: '是否换行不能为空', trigger: 'blur' }],
        insertable: [{ required: true, message: '可插入不能为空', trigger: 'blur' }],
        editable: [{ required: true, message: '可编辑不能为空', trigger: 'blur' }],
        listable: [{ required: true, message: '可列表显示不能为空', trigger: 'blur' }],
        queryable: [{ required: true, message: '可查询不能为空', trigger: 'blur' }],
        sortable: [{ required: true, message: '可排序不能为空', trigger: 'blur' }],
        resizable: [{ required: true, message: '可调宽不能为空', trigger: 'blur' }],
        exportable: [{ required: true, message: '可导出不能为空', trigger: 'blur' }],
        defaultSort: [{ required: true, message: '默认排序不能为空', trigger: 'blur' }],
        fixedMode: [{ required: true, message: '固定列模式不能为空', trigger: 'blur' }],
        queryType: [{ required: true, message: '查询方式不能为空', trigger: 'change' }],
        htmlType: [{ required: true, message: '显示类型不能为空', trigger: 'change' }],
        width: [{ required: true, message: '默认列宽不能为空', trigger: 'blur' }],
        example: [{ required: true, message: '接口示例不能为空', trigger: 'blur' }],
      },
    };
  },
  created() {
    this.getList();
  },
  methods: {
    canDelete,
    canEdit,
    /** 查询模型字段列表 */
    getList() {
      this.loading = true;
      pageList(this.queryParams).then((resultDTO) => {
        this.list = resultDTO.data?.list;
        this.total = resultDTO.data?.total;
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        id: null,
        modelId: null,
        columnName: null,
        columnType: null,
        columnComment: null,
        propertyName: null,
        javaType: null,
        sortBy: null,
        isPk: '0',
        isIncrement: '0',
        isRequired: '0',
        readonlyMode: null,
        hiddenField: '0',
        newline: '0',
        insertable: '0',
        editable: '0',
        listable: '0',
        queryable: '0',
        sortable: '0',
        resizable: '0',
        exportable: '0',
        defaultSort: null,
        fixedMode: null,
        queryType: null,
        htmlType: null,
        dictType: null,
        defaultValue: null,
        verifyRule: null,
        width: null,
        example: null,
        layout: null,
      };
      this.resetForm('form');
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.currentPage = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm('queryForm');
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.selecteds = selection;
      this.ids = selection.map((item) => item.id);
      this.single = selection.length !== 1;
      this.multiple = !selection.length;
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = '添加模型字段';
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      if (!row.id) {
        if (this.selecteds.some((item) => item.editState > 1)) {
          this.$modal.msgWarning('系统数据不能编辑');
          return;
        }
        if (this.selecteds.some((item) => item.auditState > 0)) {
          this.$modal.msgWarning('已审核数据不能编辑');
          return;
        }
      }
      this.reset();
      const id = row.id || this.ids;
      queryById(id).then((resultDTO) => {
        this.form = resultDTO.data;
        this.open = true;
        this.title = '修改模型字段';
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs['form'].validate((valid) => {
        if (valid) {
          if (this.form.id != null) {
            updateById(this.form).then((resultDTO) => {
              this.$modal.msgSuccess('修改成功');
              this.open = false;
              this.getList();
            });
          } else {
            insert(this.form).then((resultDTO) => {
              this.$modal.msgSuccess('新增成功');
              this.open = false;
              this.getList();
            });
          }
        }
      });
    },
    /** 审核按钮操作 */
    handleAudit(row) {
      const ids = row.id || this.ids;
      this.$modal
        .confirm('是否审核模型字段编号为"' + ids + '"的数据项？')
        .then(function () {
          return auditByIds(ids);
        })
        .then(() => {
          this.getList();
          this.$modal.msgSuccess('审核成功');
        })
        .catch(() => {});
    },
    /** 反审核按钮操作 */
    handleUnaudit(row) {
      const ids = row.id || this.ids;
      this.$modal
        .confirm('是否反审核模型字段编号为"' + ids + '"的数据项？')
        .then(function () {
          return unauditByIds(ids);
        })
        .then(() => {
          this.getList();
          this.$modal.msgSuccess('反审核成功');
        })
        .catch(() => {});
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      if (!row.id) {
        if (this.selecteds.some((item) => item.editState > 0)) {
          this.$modal.msgWarning('系统数据不能删除');
          return;
        }
        if (this.selecteds.some((item) => item.auditState > 0)) {
          this.$modal.msgWarning('已审核数据不能删除');
          return;
        }
      }
      const ids = row.id || this.ids;
      this.$modal
        .confirm('是否确认删除模型字段编号为"' + ids + '"的数据项？')
        .then(function () {
          return deleteByIds(ids);
        })
        .then(() => {
          this.getList();
          this.$modal.msgSuccess('删除成功');
        })
        .catch(() => {});
    },
    /** 逻辑删除按钮操作 */
    handleRemove(row) {
      const ids = row.id || this.ids;
      this.$modal
        .confirm('是否确认逻辑删除模型字段编号为"' + ids + '"的数据项？')
        .then(function () {
          return removeByIds(ids);
        })
        .then(() => {
          this.getList();
          this.$modal.msgSuccess('删除成功');
        })
        .catch(() => {});
    },
    /** 还原删除按钮操作 */
    handleRecover(row) {
      const ids = row.id || this.ids;
      this.$modal
        .confirm('是否确认还原删除模型字段编号为"' + ids + '"的数据项？')
        .then(function () {
          return recoverByIds(ids);
        })
        .then(() => {
          this.getList();
          this.$modal.msgSuccess('还原成功');
        })
        .catch(() => {});
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download(
        'lcdp/modelColumn/export',
        {
          ...this.queryParams,
        },
        `modelColumn_${new Date().getTime()}.xlsx`,
      );
    },
  },
};
</script>
